package com.bdqn.mapper;

import com.bdqn.pojo.SysRole;
import com.bdqn.pojo.SysUser;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface SysUserMapper {
    int  add(SysUser sysUser);
    Long count(@Param("realName") String  realName,@Param("roleId")Long roleId);
    List<SysUser> page(@Param("realName") String realName,@Param("roleId")Long roleId,@Param("pageIndex")Long pageIndex,@Param("pageSize")Long pageSize);
    SysUser getByAccountAndPassword(@Param("account") String account, @Param("password")String password);

    int exist(String account);

    SysUser getById(Long userid);

    int del(Long userid);
}
